<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Small_operate_manual.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Small_operate_xa.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '手工录入',
                    name: 'Small_operate_xa',
                    url: "/Small_operate_xa/",
                    sortName: "operateDate"
                },
                extend: extend,
                editFormFields: {"dealName":"","dealNum":"","dealAmount":"","operateDate":"",creator: "",
                  createID: "",
                  createDate: "",
                  modifier: "",
                  modifyID: "",
                  modifyDate: "",
                  merchantCode: "",
                  merchantName: "",
                  DealStatus: ''},
                editFormOptions: [[{"title":"商家名称","field":"dealName","type":"select",dataKey:'GetDataExpressCode',data: [],required: true,}],
                              [{"title":"交易单数","field":"dealNum","type":"number",required: true}],
                              [{"title":"交易金额","field":"dealAmount","type":"number",required: true}],
                              [{"title":"日期","field":"operateDate","type":"datetime",required: true}],],
                searchFormFields: {"dealName":""},
                searchFormOptions: [[{"title":"商家名称id","field":"dealName","type":"text"}]],
                columns: [{field:'id',title:'id',type:'string',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'dealName',title:'商家名称',type:'string',width:90,align:'left',sortable:true},
                       {field:'dealNum',title:'交易单数',type:'int',width:90,align:'left'},
                       {field:'dealAmount',title:'交易金额',type:'decimal',width:90,align:'left'},
                       {field:'operateDate',title:'日期',type:'string',width:90,align:'left'},],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
